Anillo 3 - Original

An interactive fiction by Mel Hython (2009) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Chapter 17 - Copa del arbol

Section 1 - Jaula auténtica

A jaula is a NSE container. It is fixed in place. It is in Copa. It is female and transparent. It is a closed openable container.
The description of jaula is "Barrotes de recio hierro, aunque oxidado. Una puerta realizada con el mismo material y rematada con un cerrojo no demasiado grande.".

Jaula has a number called intentos. The intentos of Jaula is 0.

[Abrir jaula]
Instead of unlocking jaula with a thing:
    try opening jaula.

Instead of entering jaula:
    say "Sería de locos meterse en una jaula de prisioneros. ¡Y si se cierra por casualidad! Mejor sacar lo que tenga dentro.".

Instead of opening jaula when the aguja is not carried:
    increase intentos of Jaula by 1;
    say "Descolgándote peligrosamente desde la rama, intentas abrir la puerta de la jaula.";
    bnw;
    say "Pero la puerta está cerrada y no parece querer abrir tal y como lo estás intentando.";
    bnw;
    say "Haces fuerza para intentar abrirla...";
    if the player is icalante or the player is yerk:
        say "...y finalmente cede.";
        now jaula is open;
    otherwise if the player is an orco:
        if intentos of jaula is 1:
            say "...sin lograr nada.";
        otherwise:
            if a random chance of 1 in 3 succeeds:
                say "...y tu portador no consigue mantener el apoyo al tiempo que intenta forzar la jaula.";
                bnw;
                say "Cae. Es breve. Doloroso. Y, bueno, evidentemente mortal.";
                try silently going down;
                morir en el pantano;
            otherwise:
                say "...sin lograr nada.";
    otherwise:
        say "...sin lograr nada.".

Instead of opening jaula when the aguja is carried:
    say "Pruebas con la extraña aguja para abrir el cerrojo de la jaula, ¡y funciona! Abierta.";
    now the jaula is open.

This is the enjaulado rule:
    if the action requires a touchable noun and the noun is in jaula and the jaula is closed:
        say "Resulta demasiado complejo acceder [al noun] desde lo alto de la rama mientras la jaula siga cerrada." instead.

The enjaulado rule is listed before the basic accessibility rule in the action-processing rules.